import myaxios from "../../MyAxios";

import BASEURL from '@/http/BaseUrl'
const BMDURL = BASEURL.BMDURL

const adminApi = {
  /**
   * 管理员增加影视接口
   *@param {Object} params {name,score,director,actor,showingon,country,type,imgs,cont,tj_cont}
   */
  yinshi_add(params) {
    let url = BMDURL + "/admin/yinshi_add"
    return myaxios.post(url, params)
  },

  /**
   * 管理员删除审核记录接口
   *@param {Object} params {id}
   */
   shenhe_delete(params) {
    let url = BMDURL + "/admin/shenhe_delete"
    return myaxios.post(url, params)
  },

   /**
   * 管理员审核接口
   *@param {Object} params {id,status,liyou,type}
   */
   shenhe_status(params) {
    let url = BMDURL + "/admin/shenhe_status"
    return myaxios.post(url, params)
  },

   /**
   * 管理员审核显示接口
   *@param {Object} params {page,pagesize,status}
   */
   shenhe(params) {
    let url = BMDURL + "/admin/shenhe"
    return myaxios.get(url, params)
  },

   /**
   * 管理员登录接口
   *@param {Object} params {user,pwd}
   */
   login(params) {
    let url = BMDURL + "/admin/login"
    return myaxios.post(url, params)
  },

   /**
   * 管理员注册接口
   *@param {Object} params {user,pwd,name,phone,email,root}
   */
   register(params) {
    let url = BMDURL + "/admin/register"
    return myaxios.post(url, params)
  },

}

export default adminApi;